package com.neusoft.neumooc.service;

import java.util.List;
import com.neusoft.core.common.exception.ServiceException;
import com.neusoft.neumooc.vo.BackMenuVO;

public interface BackMenuService {
    
    /**
     * 获取所有菜单列表
     */
    List<BackMenuVO> getAllMenus() throws ServiceException;
    
    /**
     * 获取一级菜单列表
     */
    List<BackMenuVO> getParentMenus() throws ServiceException;
    
    /**
     * 根据父菜单ID获取子菜单列表
     */
    List<BackMenuVO> getChildMenus(String parentId) throws ServiceException;
    
    /**
     * 添加菜单
     */
    boolean addMenu(BackMenuVO menu) throws ServiceException;
    
    /**
     * 更新菜单
     */
    boolean updateMenu(BackMenuVO menu) throws ServiceException;
    
    /**
     * 删除菜单
     */
    boolean deleteMenu(String menuId) throws ServiceException;
    
    /**
     * 根据ID获取菜单
     */
    BackMenuVO getMenuById(String menuId) throws ServiceException;
} 